package your.pack.sten;

import android.app.Activity;
import android.os.Bundle;
import android.webkit.WebView;
import android.webkit.WebViewClient;

public class TestStory extends Activity {
	private WebView wv;
	@Override
	public void onCreate(Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);
		setContentView(R.layout.testing_story);
		
		wv = (WebView)findViewById(R.id.testing_story);
		wv.getSettings().setJavaScriptEnabled(true);
		
		wv.loadUrl("http://m.sten.or.kr/bbs/board.php?bo_table=test_story");
		wv.setWebViewClient(new WebViewClient(){
			public boolean shouldOverrideUrlLoading(WebView view, String url) {
	       		view.loadUrl(url);
	       		return true;
			}
		});
		/*
	    @Override
	    public boolean onKeyDown(int keyCode, KeyEvent event){
	    	if((keyCode == KeyEvent.KEYCODE_BACK)&&wv.canGoBack()){
	    		wv.goBack();
	    		return true;
	    	}
	    	return super.onKeyDown(keyCode, event);
	    }
	    */
		
	}	

}
